package com.hsbc.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsbc.entity.Role;
import com.hsbc.manager.dao.RoleRepository;
import com.hsbc.manager.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleRepository roleRepository;
	
	@Override
	public List<Role> findAdminRoleList(int adminId) {
		return roleRepository.findByAdminId(adminId);
	}

}
